package com.significantfiles.snapshot.engine.structure;

import java.math.BigInteger;

public abstract class AbstractEntity implements IEntity {

	private static final long serialVersionUID = 1L;
	
	private final IEntityId id;
	private final long createdAt;

	
	
	public AbstractEntity(final BigInteger id,
			long createdAt) {
		this.id = new BigIntegerEntityId(id);
		this.createdAt = createdAt;
	}

	@Override
	public long getCreatedAt() {
		return this.createdAt;
	}
	
	@Override
	public IEntityId getId() {
		return this.id;
	}
}
